using System;
using FubuMVC.Core;

namespace thunderdome.Controllers
{
    public class FriendlyController
    {
        public SayHelloOutputModel Hello(SayHelloInputQuery input)
        {
            return new SayHelloOutputModel
                       {
                           Name = input.Name,
                           CurrentTime = DateTime.Now
                       };
        }
    }

    public class SayHelloOutputModel
    {
        public string Name { get; set; }
        public DateTime CurrentTime { get; set; }
    }

    public class SayHelloInputQuery
    {
        [RouteInput]
        public string Name { get; set; }
    }
}